Consolidate creating processes in tests
authorAlex Crichton <alex@alexcrichton.com>
Thu, 17 Dec 2015 17:53:14 +0000 (09:53 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 17 Dec 2015 18:06:28 +0000 (10:06 -0800)
commit26a5eeffa9b6751687421a851a78f2b3b772ec32
tree58b059349c5858244e7e8dfb0d03612a310419c0
parent2cdeb0797a5d60b6a1d5e98e18c456bde8128bb7
Consolidate creating processes in tests

Each test wants to be sure to reset HOME and remove CARGO_HOME from the
environment, but this was done inconsistently throughout the test suite. This
commit consolidates process creation so there's only one point for creating a
process ready to execute the Cargo that's being tested.
tests/support/git.rs
tests/support/mod.rs
tests/test_cargo.rs
tests/test_cargo_install.rs
tests/test_cargo_new.rs
tests/test_cargo_package.rs
tests/test_cargo_registry.rs
tests/test_cargo_search.rs
tests/test_shell.rs
tests/tests.rs